package com.itzhouwei.commerce.thread.core.demo1;

/**
 * @description: 简单的线程
 * @author：zw，微信公共号：yingshengzw
 * @date: 2021/8/28
 * @Copyright：公众号：搬砖暗夜码农 | 博客：https://itzhouwei.com - 沉淀、学习、分享、成长，让自己和他人都能有所收获！
 */
public class MyZwDemo {
    public static void main(String[] args) {
        Thread thread = new Thread(() -> {
            while (true){
                try {
                    Thread.sleep(3000);
                    System.out.println("zw runing");
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
            }
        });
      thread.start();
    }
}
